﻿
using HBase;
using hCommand; 
using System.Collections.Generic;
using System.Data;

namespace Persistence
{
    public interface ICoreWhLocServer :IBaseServer {
        Page<CoreWhLoc> queryPhysicalLocationPage<CoreWhLoc>(int start ,int end ,PageDto param);
        CoreWhLoc getById(long id  );
        //public int status;//1垛机正常，2 垛机故障，3//垛机被取代
        bool updateWcsAutoActive(int craneId ,int status);
        List<DapingDto> getDapingDto(int id);
        #region 区域设置
        //区域分页
        Page<CoreWhArea> QueryAreaPage(CoreWhAreaDto dto);
        //区域添加
        long AddArea(CoreWhArea coreWhArea);
        //区域修改
        bool UpdateArea(CoreWhArea coreWhArea);
        //区域删除
        int DeleteArea(List<CoreWhArea> areaList);
        //区域查找
        CoreWhArea FindAreaById(long id);
        //根据ID删除
        // bool DeleteByClassifyId(long userId);
        //区域名称查重
        bool QueryAreaPageByName(CoreWhArea coreWhArea);
        //通过库房ID查询数据
        List<CoreWhArea> GetAreaByWhId(long whId);

        List<CoreWhAreaStat> stat( );
        #endregion

        #region 库位设置
        //库位分页
        Page<CoreWhLoc> QueryLocPage(CoreWhLocDto dto);
        //库位添加
        long AddLoc(CoreWhLoc coreWhLoc);
        //库位修改
        bool UpdateLoc(CoreWhLoc coreWhLoc);
        void batchUpdateLocScr(List<long> locList, long areaId, int activeStatus);
        bool BatchUpdataLoc(List<long> locList, long areaid);
        //库位删除
        int DeleteLoc(List<CoreWhLoc> locList);
        //库位查找
        CoreWhLoc FindLocById(long id);
        //根据ID删除
        // bool DeleteByClassifyId(long userId);
        //库位名称查重
        bool QueryLocPageByRow(CoreWhLoc coreWhLoc);
        //通过区域ID查询数据
        List<CoreWhLoc> GetLocByWhAreaId(long areaId);
        //根据库位ID批量修改库区

        #endregion
    }
}
